#include"comm.h"
#include<stdio.h>

int main()
{

  key_t key = ftok(NAME_PATH,ADDR_ID);
  int shmid = shmget(key,SIZE,IPC_CREAT | IPC_EXCL);
  printf("key:%d shmid:%d\n",key,shmid);
  sleep(1);

  shmctl(shmid,IPC_RMID,NULL);

  sleep(4);
  return 0;
}
